﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SmartSpace.Data;

namespace SmartSpace.Workflow
{
    public class FieldMetadataComparer : IComparer<FieldMetadata>
    {
        public int Compare(FieldMetadata x, FieldMetadata y)
        {
            if (x.OrderIndex < y.OrderIndex)
            {
                return -1;
            }
            else if (x.OrderIndex > y.OrderIndex)
            {
                return 1;
            }
            return 0;
        }
    }
}
